<?php include "../share/head.html" ?>
<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<?php include "../share/nav-g.php" ?>
			<div class="row clearfix">
				<div class="col-md-12 column"><br/><br/><br/><br/>
					<h3>
						登录
					</h3>
					<form class="form-horizontal" role="form" action="../actions/login.php" method="post">
						<div class="form-group"><br/>
							 <label for="inputID3" class="col-sm-2 control-label">学号</label>
							<div class="col-sm-10">
								<input required  type="text" class="form-control" id="name" name="name" />
							</div>
						</div>
						<div class="form-group">
							 <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
							<div class="col-sm-10">
								<input required type="password" class="form-control" id="inputPassword3" name="password" />
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<div class="checkbox">
									 <label><input type="checkbox" id="rem"/>记住我的学号</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								 <button type="submit" class="btn btn-default" onclick="fn()">登录</button>
							</div>
						</div>
					</form>
<script type="text/javascript">
	var user = document.getElementById('name');
	var localUser = localStorage.getItem('user') || '';
	var check = document.getElementById('rem');
	user.value = localUser;

	function fn(){
		if(check.checked){
			localStorage.setItem('user',user.value);
		}
		else{
			localStorage.setItem('user','');
		}
	}
</script>

 <a id="modal-252267" href="#modal-container-252267" role="button" class="btn" data-toggle="modal">忘记密码</a>
					
					<div class="modal fade" id="modal-container-252267" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
						<div class="modal-dialog">
							<div class="modal-content">
								<div class="modal-header">
									 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
									<h4 class="modal-title" id="myModalLabel">
										忘记密码
									</h4>
								</div>
								<div class="modal-body">

					<form class="form-horizontal" role="form">
						<div class="form-group"><br/>
							 <label for="inputEmail3" class="col-sm-2 control-label">学号</label>
							<div class="col-sm-10">
								<input type="input" class="form-control" id="inputEmail3" />
							</div>
						</div>
						<div class="form-group">
							 <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" id="inputPassword3" />
							</div>
						</div>
						<div class="form-group">
							 <div align="middle">你妈的名字</div>
							
						</div>
						<div class="form-group">
							 <label for="inputPassword3" class="col-sm-2 control-label">安全问题回答</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" id="inputPassword3" />
							</div>
						</div>

								</div>
								<div class="modal-footer">
									 <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> <button type="button" class="btn btn-primary">保存</button>
								</div></form>
							</div>
							
						</div>
						
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php include "../share/foot.html" ?>